/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rest.jbpm.wrappers.lists;

import java.util.*;
import javax.xml.bind.annotation.*;
import rest.jbpm.wrappers.HistoryProcess;

/**
 *
 * @author jump
 */

@XmlRootElement(name="processes")
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "process", propOrder = {"processes"})
public class HistoryProcessList {

    private List<HistoryProcess> processes = new ArrayList<HistoryProcess>();

    protected HistoryProcessList() {
        
    }

    public HistoryProcessList(Collection<HistoryProcess> hps) {
        for(HistoryProcess hp : hps)
            processes.add(hp);
    }

    @XmlElement(name="process",required=true)
	public List<HistoryProcess> getProcesses() {
		return processes;
	}



}
